package classscanner; 

import java.util.Scanner;

class ScannerDemo{

	public static void main(String arg[]) {
		String variableString;
		Scanner entrada = new Scanner(System.in);
		System.out.print("Ingrese un texto: ");
		
		while(entrada.hasNext()){
			variableString = entrada.next();
			System.out.println(variableString);
		}
		
		entrada.close();
		
	}

}